using UnityEngine;
using System.Collections;

public class Options : MainMenu {
	
	private bool isPlayed = false;
	
	void Update()
	{
		if(isPlayed && !pressed.isPlaying)
		{
			Application.LoadLevel("scnOptions");
		}
	}

	void OnGUI ()
	{
        if(GUI.Button(new Rect (Screen.width /2 - 110, Screen.height /2+120, 221, 50),new GUIContent("", "Button1"), styleMainMenu))
		{
			pressed.Play();
			isPlayed = true;
		}
        if (Event.current.type == EventType.Repaint && GUI.tooltip != lastTooltip) {
            if (GUI.tooltip != "")
                SendMessage(GUI.tooltip + "OnMouseOver", SendMessageOptions.DontRequireReceiver);
            
            lastTooltip = GUI.tooltip;
        }
    }
		
    void Button1OnMouseOver() 
	{
		over.Play();
    }
}
